import request from '@/utils/request'

// 查询ip设置列表
export function listIp(query) {
  return request({
    url: '/system/ip/list',
    method: 'get',
    params: query
  })
}

// 查询ip设置详细
export function getIp(infoId) {
  return request({
    url: '/system/ip/' + infoId,
    method: 'get'
  })
}

// 新增ip设置
export function addIp(data) {
  return request({
    url: '/system/ip',
    method: 'post',
    data: data
  })
}

// 修改ip设置
export function updateIp(data) {
  return request({
    url: '/system/ip',
    method: 'put',
    data: data
  })
}

// 删除ip设置
export function delIp(infoId) {
  return request({
    url: '/system/ip/' + infoId,
    method: 'delete'
  })
}

export function changeIpStatus(data) {
  return request({
    url: '/system/ip/changeIp',
    method: 'put',
    data: data
  })
}
